//兼容封装 transform transition
@mixin transform ($y) {
    transform: $y;
    -ms-transform: $y;
    -moz-transform: $y;
    -webkit-transform: $y;
    -o-transform: $y;
}

//兼容封装
@mixin transition ($x) {
    transition: $x;
    -ms-transition: $x;
    -moz-transition: $x;
    -webkit-transition: $x;
    -o-transition: $x;
}

html,body{
    margin: 0;
    padding: 0;
}
[v-cloak]{
    display: none;
}
.d-flex{
    display: flex!important;
}
.text-center{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mr-auto{
    margin-right: auto!important;
    &.logo{
    font-size:16px!important;
    font-weight: bold!important;
    border-bottom: 0px!important;
    };
    svg.icon-python {
        width: 1em;
        height: 1em;
        font-size:19px;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
        margin: 0 3px;
        padding: 0 0;
        position: relative;
    };

}
.ml-auto{
    margin-left: auto!important;
}


.align-items-center{
    align-items: center!important;
}
.flex-center{
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-desc{
    margin-bottom: 20px;
    padding-bottom: 8px;
    h4 {
        border-bottom: 2px solid #f0f0f0;
        margin-top: 0;
        strong {
            border-bottom: 2px solid #17a2b8;
        }
    };
    .el-card__body{
        display: block;
    };
    p.search-tag{
        margin: 0 3px ;
        float: right!important;
    };
}
//置顶样式
.icon.icon-top {
    width: 1em;
    height: 1em;
    font-size: 56px;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    margin: 2px 2px 100% 100%;
    position: absolute;
    right: 0;
    top: 0;
}
//加载更多按钮样式
.more {
    // position: relative;
    margin: 20px 0;
    text-align: center;
    .more-btn {
        display: inline-block;
        width: 20%;
        text-align: center;
    }
    p {
        display: inline-block;
        width: 20%;
        text-align: center;
    }
}

//标签卡片样式
.text.item-tag {
	.tag-item {
    margin-right: .3rem;
    margin-bottom: .3rem;
    margin-left: .3rem;
    a {
        text-decoration: none;
        // color: white;
    }
	&:hover {
    // color: red;
    border-color:#424242;
    background-color: #424242;
    cursor: pointer;
	}
	}
}

//右侧侧边栏公共样式
.side-card{
    margin-bottom: 30px;
    .el-card__header{
        padding: 12px 20px;
    }
}

//分类
.ul-category{
    position: relative;
    list-style-type: none;
    flex-direction: column;
    margin: 0 0;
    padding: 0 0;
    li {
        margin: 5px 0;
        // align-items: center!important;
        justify-content: space-between!important;
        border-bottom: 1px solid #f0f0f0;
    }
    p {
        margin: 0 0;
        padding: 0 0;
        :hover{
            color: #4285f4;
        }
    }
    .icon-sanx-up{
        color: #4285f4;
        margin-top: 0.2rem;
        margin-right: 0.8rem;
    }
    .category-link{
        color: black;
        text-decoration: none!important;
        position: relative;
    }
    .badge{
        display: inline-block;
        text-align: center;
        sup {
            font-size: .75rem;
            border-radius: .5rem;
            margin-top: 0.3rem;
        }
    }
}
//回顶部
.backtop{
    width: 60px;
    height: 60px;
    span.iconfont{
        font-size: 56px;
        color: #3A5FCD;
    }
}

//给代码块行号,添加样式
pre {
    font-size: 0.9rem;
}
.hljsln {
    position: relative;
    display: block;
    padding-left: 3em !important;
}

.hljsln .ln-bg {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 2.2em;
    height: 100%;
    border-right: 1px solid #969696;
    // background: rgba(255, 255, 255, 0.18);
}

.hljsln .ln-num {
    position: relative;
    display: inline-block;
    height: 1em;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hljsln .ln-num::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    margin-right: 1em;
    color: #969696;
    // border-right: 1px solid white;
    font-style: normal;
    font-weight: normal;
    content: attr(data-num);
}

//头像
.el-avatar{
    &:hover{
    @include transform(rotate(1turn));
    @include transition(all 0.3s ease-in-out);
    }
}

//登录注册对话框样式
.log-reg-dialog {
    cursor: auto;
}


//头像上传
.avatar-uploader  {
    text-align: left;
    .el-upload{
      display: block;
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      width: 100px;
      height: 100px;
      line-height: 100px;
      &:hover{
          border-color: #409EFF;
      }
  }
  }
  .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      width: 100%;
      height: 100%;
      line-height: 100px;
      text-align: center;
  }
  .avatar-img {
      width: 100px;
      height: 100px;
      display: block;
  }

  //mavon 编辑器
.mavon.fullscreen{
    z-index: 5000!important;
}
.v-note-help-wrapper{
    z-index: 5001!important;
}

//H1-H6标题样式
.article-body,.about {
    h1,h2,h3,h4,h5,h6{
    font-weight:600;
    margin: 10px 0 10px 0;
    padding: 0 10px;
    border-left: 5px solid #20c997;
    background-color: #f7f7f7;
    line-height: 2em;
    }
}

//引用块样式，
blockquote{
    padding: 0 1em;
    color: #6a737d;
    border-left: .25em solid #dfe2e5;
}
pre .hljs{
    border-radius: 5px;
}
code{
    border-radius: 5px;
}